import request from '@/utils/request';

export function findPageDefaultAuthPersonsApi(params: any) {
  const { filterInfo, pageInfo } = params;
  return request('/bommgmt/defaultAuthPersons/page', {
    method: 'POST',
    data: {
      pageInfo,
      filterInfo: {
        ...filterInfo,
      },
    },
  });
}

//保存
export async function batchSaveApi(params: object) {
  return request(
    '/bommgmt/defaultAuthPersons/saveBatch',
    {
      method: 'POST',
      data: params,
    },
    {
      showSuccess: true,
      successMessage: '操作成功',
    },
  );
}
